package cn.edu.zjut.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import cn.edu.zjut.entity.UserEntity;

/**
 * @description:
 * @author:ZhouDan
 * @date: 2020/5/24
 * @version: 1.0
 */
@Repository
public interface UserRepository extends JpaRepository<UserEntity,Long> {

    UserEntity findUserEntityByUserName(String userName);

    UserEntity findByUserNameAndPassword(String userName , String password);

    UserEntity findByUserNameAndTelephone(String userName , String telephone);

    UserEntity findByTelephone(String telephone);


}

